package com.tour.tour.vo;

import com.tour.tour.entity.Spot;
import lombok.Data;

/**
 * @author YounGCY
 * @date 2023-5-16 下午 7:22
 * @description
 */
@Data
public class SpotVO {
    private Long id;
    
    private String name;
    
    private String images;
    
    private String description;
    
    private String strategy;
    
    private String matters;
    
    public SpotVO(Spot spot) {
        this.id = spot.getId();
        this.name = spot.getName();
        this.images = spot.getImages();
        this.description = spot.getDescription();
        this.strategy = spot.getStrategy();
        this.matters = this.getMatters();
    }
}
